/*
* ============================================================================
*  Name        : sea_platform_less.cpp
*  Part of     : Finite state machine framework 
*  Description : 
*  Version     : %version: %
*  
*
* ============================================================================
*/
#include "sea_platform.h"
#include "sea_trace.h"

/**
 * @file sea_platform_win.cpp
 *
 * @ingroup Platforms
 */
using namespace sea;

// -------------------------------------------------------------------------------------------------
// Trace function
// -------------------------------------------------------------------------------------------------
int Trace::Print( const char* format_str, ... )
{
    int result = -1;
    char buffer[ MAX_BUFFER ];
    String format = format_str;
    format += "\n";

    va_list arg_list;
    va_start( arg_list, format_str );
    result = vsprintf( buffer, format.c_str( ), arg_list );
    va_end( arg_list );

    printf( buffer );

    return result;
}
